package com.css.fxfzaqbz.modules.assess.repository;

import com.css.fxfzaqbz.modules.assess.entity.RiskAssessmentEntity;
import com.css.fxfzaqbz.modules.assess2.entity.TaskContent;
import com.css.fxfzaqbz.zcpt.sys.entity.SUser;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author y1fan
 * @create 2022-09-09 9:03
 */
public interface RiskAssessmentRepository {


    RiskAssessmentEntity saveRiskAssessment(RiskAssessmentEntity riskAssessmentEntity);

    RiskAssessmentEntity save2RiskAssessment(RiskAssessmentEntity riskAssessmentEntity);

    List<RiskAssessmentEntity> getAllRiskAssessment(String id);

    void deleteRiskAssessment(String id, String userID, Timestamp currentTimestamp);

    RiskAssessmentEntity getRiskAssessmentById(String id);

    RiskAssessmentEntity updateRiskAssessment(RiskAssessmentEntity riskAssessmentEntity);

    List<RiskAssessmentEntity>  getRiskAssessmentByContend(String sraAssContent, String relationId);

    RiskAssessmentEntity updateRiskAssessmentById(RiskAssessmentEntity riskAssessmentEntity, String sraId);

    List<TaskContent> getAllRiskAssessment1(String id);

    List<RiskAssessmentEntity> getEarthEntityTwo(String id);

    void firstSubmitRiskAssessment(String id, String userID, Timestamp currentTimestamp, String sraAssFileDescribe);

    void firstSubmitRiskAssessment2(String id, String userID, Timestamp currentTimestamp);

    RiskAssessmentEntity riskAssessmentIfRepetition(RiskAssessmentEntity riskAssessmentEntity);

    void addRiskAssessmentDisaster(List<String> ids, String describe);

    void removeRiskAssessmentDisasterAss(RiskAssessmentEntity riskAssessmentEntity);

    void secondSubmitRiskAssessment(List<String> ids, SUser sUser,Timestamp currentTimestamp);

    RiskAssessmentEntity whatIsThisNumber(RiskAssessmentEntity riskAssessmentEntity);

    void deleteRiskAssessmentByTitel(String a, String userID, Timestamp currentTimestamp,String id);

    List<RiskAssessmentEntity> getRiskAssessmentByIaId(String id);

    List<RiskAssessmentEntity> getRiskByIaIdAndType(String iaId, String dzwxqpgType);
}
